package com.woniuxy02;

/**
 * @author 作者
 * @create 2025-10-29 14:31
 */
public class Test03 {
    public static void main(String[] args) {
        //创建对象
        Student s1=new Student();
        s1.name="zs";
        s1.age=11;
        System.out.println(s1.name);
        System.out.println(s1.age);
        Student s2=new Student();
        s2.name="ls";
        s2.age=12;
        System.out.println(s2.name);
        System.out.println(s2.age);
        s1=s2;
        s1.name="xxx";
        System.out.println(s1.name);
        System.out.println(s2.name);

    }
}
